// 自动生成模板SmsSeckillSkuRelation
package biz

import "github.com/go-kratos/kratos/v2/log"

// smsSeckillSkuRelation表 结构体  SmsSeckillSkuRelation
type SmsSeckillSkuRelation struct {
	Id                 *int     `json:"id" form:"id" gorm:"primarykey;comment:id;column:id;size:19;"`                                            //id
	PromotionId        *int     `json:"promotionId" form:"promotionId" gorm:"comment:活动id;column:promotion_id;size:19;"`                         //活动id
	PromotionSessionId *int     `json:"promotionSessionId" form:"promotionSessionId" gorm:"comment:活动场次id;column:promotion_session_id;size:19;"` //活动场次id
	SkuId              *int     `json:"skuId" form:"skuId" gorm:"comment:商品id;column:sku_id;size:19;"`                                           //商品id
	SeckillPrice       *float64 `json:"seckillPrice" form:"seckillPrice" gorm:"comment:秒杀价格;column:seckill_price;size:10;"`                      //秒杀价格
	SeckillCount       *float64 `json:"seckillCount" form:"seckillCount" gorm:"comment:秒杀总量;column:seckill_count;size:10;"`                      //秒杀总量
	SeckillLimit       *float64 `json:"seckillLimit" form:"seckillLimit" gorm:"comment:每人限购数量;column:seckill_limit;size:10;"`                    //每人限购数量
	SeckillSort        *int     `json:"seckillSort" form:"seckillSort" gorm:"comment:排序;column:seckill_sort;size:10;"`                           //排序
}

// TableName smsSeckillSkuRelation表 SmsSeckillSkuRelation自定义表名 sms_seckill_sku_relation
func (SmsSeckillSkuRelation) TableName() string {
	return "sms_seckill_sku_relation"
}

type SmsSeckillSkuRelationRepo interface {
}

type SmsSeckillSkuRelationUsecase struct {
	repo SmsSeckillSkuRelationRepo
	log  *log.Helper
}

func NewSmsSeckillSkuRelationUsecase(repo GreeterRepo, logger log.Logger) *SmsSeckillSkuRelationUsecase {
	return &SmsSeckillSkuRelationUsecase{repo: repo, log: log.NewHelper(logger)}
}
